package tbdp.tool.spi;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import tbdp.tool.config.JobConfig;
import tbdp.tool.config.ProcessorConfig;
import tbdp.tool.context.JobContext;

/**
 * @author xbkaishui
 * @version $Id: Processor.java, v 0.1 2017-06-17 下午3:07 xbkaishui Exp $$
 */
public abstract class Processor {

    protected Logger logger = LoggerFactory.getLogger(Processor.class);

    public abstract String getType();

    public abstract void process(JobContext context, ProcessorConfig processorConfig);

    public abstract boolean needHandle(JobConfig jobConfig);

}
